﻿using System;
using System.Collections.Generic;

namespace Wrox.ProCSharp.Delegates
{
    class Program
    {
        static void Main()
        {
            //Employee[] employees =//讲对象实例化并赋值
            //{
            //    new Employee("Bugs Bunny", 20000),
            //    new Employee("Elmer Fudd", 10000),
            //    new Employee("Daffy Duck", 25000),
            //    new Employee("Wile Coyote", 1000000.38m),
            //    new Employee("Foghorn Leghorn", 23000),
            //    new Employee("RoadRunner", 50000)
            //};
            List<Employee> employees1 = new List<Employee>();
            employees1.Add(new Employee("Bugs Bunny", 20000, 50));
            employees1.Add(new Employee("Elmer Fudd", 10000, 22));
            employees1.Add(new Employee("Daffy Duck", 25000, 20));
            employees1.Add(new Employee("Wile Coyote", 1000000.38m, 30));
            employees1.Add(new Employee("Foghorn Leghorn", 23000, 50));
            employees1.Add(new Employee("RoadRunner", 50000, 60));

            //BubbleSorter.Sort(employees, Employee.CompareSalary);

            //foreach (var employee in employees)
            //{
            //    Console.WriteLine(employee);
            //}
        }
    }
}
